/*
 * IO.h
 *
 * Created: 26.03.2012 14:55:05
 *  Author: Luke
 */ 


#ifndef IO_H_
#define IO_H_

#define BUTTON1 1
#define BUTTON2 2
#define BUTTON3 4
#define BUTTON4 8
#define BUTTON5 16

uint8_t startup_buttons_;

void ioInit();
void ioSelfHoldOn();
void ioSelfHoldOff();
uint8_t ioGetButtons();

void ioClrAndEnableISR();
uint8_t ioProcessButton(uint8_t button);
void ioFakeButton(uint8_t button);


#endif /* IO_H_ */